var builder = WebApplication.CreateBuilder(args);
builder.Services.AddHttpClient("orders", c =>
{
    c.BaseAddress = new Uri("http://localhost:5010/graphql");
});
builder.Services.AddGraphQLServer()
    .AddRemoteSchema("orders");

var app = builder.Build();
app.MapGraphQL();
app.Run();